package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.PotentialPoints;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/7/10  星期一   9:51
 * @description : 此类用来
 ***************************************/
@Mapper
public interface PotentialPointsMapperXml extends BaseMapper<PotentialPoints> {
    /**
     * delete by primary key
     *
     * @param ppId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String ppId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(PotentialPoints record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(PotentialPoints record);

    /**
     * select by primary key
     *
     * @param ppId primary key
     * @return object by primary key
     */
    PotentialPoints selectByPrimaryKey(String ppId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(PotentialPoints record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(PotentialPoints record);

    List<PotentialPoints> selectDistinct();
}